# -*- coding:utf-8 -*-
"""
@Time : 2020-12-15 11:18
@Author: langengel
@Des: 系统配置
"""

import os
from dotenv import load_dotenv, find_dotenv


# 加载环境变量
load_dotenv(find_dotenv(), override=True)

# -----------------------系统调试------------------------------------
DEBUG = False
INTERCEPT = True

# -----------------------项目信息------------------------------------
API_PREFIX = "/api"
VERSION = "0.0.1"
PROJECT_NAME = "mini-saas"
DESCRIPTION = '一个基于fastapi开发的服务商SAAS系统'


# -----------------------跨域支持-------------------------------------
CORS_ORIGINS = ['http://localhost:8001', "http://192.168.3.103"]
CORS_ALLOW_CREDENTIALS = True
CORS_ALLOW_METHODS = ['*']
CORS_ALLOW_HEADERS = ['*']

# -----------------------日志-----------------------------------------
LOG_DIR = os.path.join(os.getcwd(), 'logs')

# -----------------------业务超时-----------------------------------------
# 二维码扫码超时时间
QRCODE_EXPIRE = 60*1
# 注册页码超时时间
REG_EXPIRE = 60*5
# 换绑管理员微信超时时间
USER_BIND = 60*5
